package com.jfeat.am.module.wegou.services.crud.service.impl;
            
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jfeat.am.module.wegou.services.persistence.model.UserIdentity;
import com.jfeat.am.module.wegou.services.persistence.dao.UserIdentityMapper;
import com.jfeat.am.module.wegou.services.crud.service.UserIdentityService;
import com.jfeat.am.common.crud.impl.CRUDServiceOnlyImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import com.jfeat.am.common.crud.impl.CRUDServiceOnlyImpl;
/**
 * <p>
 *  implementation
 * </p>
 *
 * @author Code Generator
 * @since 2018-01-29
 */
@Service
public class UserIdentityServiceImpl  extends CRUDServiceOnlyImpl<UserIdentity> implements UserIdentityService {


    @Resource
    private UserIdentityMapper userIdentityMapper;

    @Override
    protected BaseMapper<UserIdentity> getMasterMapper() {
        return userIdentityMapper;
    }

    @Override
    public  UserIdentity findFirstByUserId(Long userId) {
        UserIdentity userIdentity=new UserIdentity();
        userIdentity.setUserId(userId);
        return userIdentityMapper.selectOne(userIdentity);
    }


}


